package com.example.chapter5.javaBeanSamples;

public class person {
    private String name="Simple";
    private String sex="女";
    private int age = 30;
    private boolean married=true;
    public person(){}
    public String getName(){
        return name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }

    public void setName(String name){
        this.name=name;
    }
}
